Skip to content

Consider in-place realloc in memory usage statistics - #4995

Merged
lum1n0us merged 4 commits into
bytecodealliance:mainfrom
GilesLeinad:consider-in-place-realloc-in-memusage
Jul 27, 2026
Merged

Consider in-place realloc in memory usage statistics#4995
lum1n0us merged 4 commits into
bytecodealliance:mainfrom
GilesLeinad:consider-in-place-realloc-in-memusage

Conversation

@GilesLeinad

@GilesLeinad GilesLeinad commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The memory usage statistics, which can be retrieved via the function mem_allocator_get_alloc_info, do not consider in-place reallocations. The grow of the memory usage is only considered if a reallocation request is satisfied by a malloc, copy and free sequence. But it is not considered if the reallocation happens by extending the current node.

@GilesLeinad GilesLeinad changed the title Consider in-place realloc in memusage Consider in-place realloc in memory usage statistics Jul 14, 2026
@lum1n0us
lum1n0us merged commit b168d0d into bytecodealliance:main Jul 27, 2026
852 of 855 checks passed
@GilesLeinad
GilesLeinad deleted the consider-in-place-realloc-in-memusage branch July 27, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants